package com.crissy.userService.entity.dto;

import com.crissy.userService.entity.UserInfo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserDTO {
    private Long userId;

    private String nickname;

    private String signature;

    private String avatar;

    public UserDTO(UserInfo userInfo) {
        this.userId = userInfo.getUserId();
        this.nickname = userInfo.getNickname();
        this.signature = userInfo.getSignature();
        this.avatar = userInfo.getAvatar();
    }
}
